<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="template/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="template/ckeditor/ckeditor.js"></script>
    <title>发布新闻</title>
  </head>
  <body>
      {literal}{literal}
     {section name=n loop=$a}
       <?php echo ($a[n]); ?>
     {/section}
    <form action="add_news.php" method="post">
    <div class="mainbox">
          <div class="title">&nbsp;&nbsp;发布新闻</div>
          <div class="tablebox">
            <table class="table" border="0">
              <tr>
                <td class="tdl">新闻类型</td>
                <td class="tdr">
                  {html_options name="n_id" options=$news_name selected=$news[0].n_id}
                </td>
              </tr>
              <tr>
                <td class="tdl">新闻标题</td>
                <td class="tdr">
                  <input type="hidden" name="id" value="<?php echo ($id); ?>">
                  <input type="text" name="title" value="<?php echo ($news[0]["title"]); ?>">
                </td>
              </tr>
              <tr>
                <td class="tdl">新闻内容</td>
                <td class="tdr">
                  <textarea id="textarea" name="contents" ><?php echo ($news[0]["contents"]); ?></textarea>
                  <script type="text/javascript">CKEDITOR.replace('textarea');</script>
                </td>
              </tr>
              <tr>
                <td class="tdr sub" colspan="2">
                  <input type="submit" name="sub" value="确定">
                  <input id="reset" type="reset"  value="重置">
                </td>
              </tr>
            </table>
          </div>
    </div>
    </form>
  </body>
</html>